<?php
/* basice syntax
    if () {

    }
*/


$admin = false;
$age = 28;

/* if ($age > 24) {
    echo "You are an older man";
} else if ($age < 18){
    echo " you are not older than 25";
} else {
    echo "something else";
} */

if ($age > 24) {
    if($admin ) {
        echo "you are an admin and older than 20";
    } else
        echo "you are older than 24 but not an admin";
}



